package io.renren.modules.backstage.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.backstage.dao.CoursespikeDao;
import io.renren.modules.backstage.entity.CoursespikeEntity;
import io.renren.modules.backstage.service.CoursespikeService;


@Service("coursespikeService")
public class CoursespikeServiceImpl extends ServiceImpl<CoursespikeDao, CoursespikeEntity> implements CoursespikeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CoursespikeEntity> page = this.page(
                new Query<CoursespikeEntity>().getPage(params),
                new QueryWrapper<CoursespikeEntity>()
        );

        return new PageUtils(page);
    }

}